package com.qfedu.meidijiaju.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 食谱
 * </p>
 *
 * @author meidimeiju
 * @since 2022-10-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ShipuYxy implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 菜品id
     */
    @ApiModelProperty(value = "菜品id")
    @TableId(value = "caipin_id", type = IdType.AUTO)
    private Integer caipinId;

    /**
     * 菜品名字
     */
    @ApiModelProperty(value = "菜品名字")
    @TableField("caipinName")
    private String caipinName;

    /**
     * 菜品介绍
     */
    @ApiModelProperty(value = "菜品介绍")
    private String caipinjieshao;

    /**
     * 菜品评分
     */
    @ApiModelProperty(value = "菜品评分")
    private String caipinpingfen;

    /**
     * 菜品作者
     */
    @ApiModelProperty(value = "菜品作者")
    private Integer caipinzuozheId;

    /**
     * 食谱小分类id
     */
    @ApiModelProperty(value = "食谱小分类id")
    @TableField("shipuXiaoType_id")
    private Integer shipuxiaotypeId;

    @ApiModelProperty(value = "菜品图片")
    private String caipintupian;

    @TableField(exist = false)
    private UserYxy userYxy;


}
